package com.lxw.study.behavioral.status.case1;

public class Client {
    public static void main(String[] args) {
        ElevatorContext elevatorContext = new ElevatorContext();

        // 开门状态
        elevatorContext.openDoor(); // Opening door
        elevatorContext.closeDoor(); // Closing door
        elevatorContext.moveUp(); // Cannot move up while the door is open

        // 关门状态
        elevatorContext.closeDoor(); // Door is already closed
        elevatorContext.openDoor(); // Opening door
        elevatorContext.moveDown(); // Moving down
    }
}
